<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>item</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/top">
</div>

<div id="Content">
    <div id="BackLink">
        <a th:href="@{'/catalog/viewProduct?productId='+${item.product.productId}}">Return to <td th:text="${item.product.productId}"></td></a>
    </div>

    <div id="Catalog">

        <table>
            <tr>
                <img th:src="${item.product.img}">
                <td th:text="${item.product.description}"></td>
            </tr>
            <tr>
                <td><b th:text="${item.itemId}">  </b></td>
            </tr>
            <tr>
                <td><b><font size="4" th:text="${item.attribute1}+ ${item.product.name}">
                </font></b></td>
            </tr>
            <tr>
                <td th:text="${item.product.name}">name</td>
            </tr>
            <tr>
                <td th:if="${item.quantity<=0}">
                    Back ordered.
                </td>
                <tr th:if="${item.quantity>0}">
                    <td th:text="${item.quantity}+'in stock'"></td>
                </tr>
            </tr>
            <tr>
                <td th:text="${item.listPrice}" >
                </td>
            </tr>

            <tr>
                <td>
                    <a class="Button" th:href="@{/cart/addItemToCart(workingItemId=${item.itemId},username=${session.username})}">Add to Cart</a>
                </td>

            </tr>
        </table>

    </div>
</div>

<div th:replace="common/bottom">
</div>
</body>
</html>